<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:forgeview="http://jboss.org/forge/view"
	template="/resources/scaffold/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="id" value="#{sdCustBean.id}"/>
		<f:event type="preRenderView" listener="#{sdCustBean.retrieve}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="View Sd Cust"/>

	<ui:define name="header">
		Sd Cust
	</ui:define>

	<ui:define name="subheader">
		View existing Sd Cust
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:panelGrid columnClasses="label,component,required" columns="3">
			<h:outputLabel for="sdCustBeanSdCustCustNo" value="Cust No:"/>
			<h:outputText id="sdCustBeanSdCustCustNo" value="#{sdCustBean.sdCust.custNo}"/>
			<h:outputText/>
			<h:outputLabel for="sdCustBeanSdCustSdCustStatus" value="Sd Cust Status:"/>
			<h:link id="sdCustBeanSdCustSdCustStatus" outcome="/sdCustStatus/view" value="#{sdCustBean.sdCust.sdCustStatus}">
				<f:param name="id" value="#{sdCustBean.sdCust.sdCustStatus.custStatusNo}"/>
			</h:link>
			<h:outputText/>
			<h:outputLabel for="sdCustBeanSdCustSysTitleName" value="Sys Title Name:"/>
			<h:link id="sdCustBeanSdCustSysTitleName" outcome="/sysTitleName/view" value="#{sdCustBean.sdCust.sysTitleName}">
				<f:param name="id" value="#{sdCustBean.sdCust.sysTitleName.titleNameNo}"/>
			</h:link>
			<h:outputText/>
			<h:outputLabel for="sdCustBeanSdCustSdCustType" value="Sd Cust Type:"/>
			<h:link id="sdCustBeanSdCustSdCustType" outcome="/sdCustType/view" value="#{sdCustBean.sdCust.sdCustType}">
				<f:param name="id" value="#{sdCustBean.sdCust.sdCustType.custTypeNo}"/>
			</h:link>
			<h:outputText/>
			<h:outputLabel for="sdCustBeanSdCustSdCustGroup" value="Sd Cust Group:"/>
			<h:link id="sdCustBeanSdCustSdCustGroup" outcome="/sdCustGroup/view" value="#{sdCustBean.sdCust.sdCustGroup}">
				<f:param name="id" value="#{sdCustBean.sdCust.sdCustGroup.custGroupNo}"/>
			</h:link>
			<h:outputText/>
			<h:outputLabel for="sdCustBeanSdCustSysBusinessType" value="Sys Business Type:"/>
			<h:link id="sdCustBeanSdCustSysBusinessType" outcome="/sysBusinessType/view" value="#{sdCustBean.sdCust.sysBusinessType}">
				<f:param name="id" value="#{sdCustBean.sdCust.sysBusinessType.businessTypeNo}"/>
			</h:link>
			<h:outputText/>
			<h:outputLabel for="sdCustBeanSdCustCustCode" value="Cust Code:"/>
			<h:outputText id="sdCustBeanSdCustCustCode" value="#{sdCustBean.sdCust.custCode}"/>
			<h:outputText/>
			<h:outputLabel for="sdCustBeanSdCustCustFirstName" value="Cust First Name:"/>
			<h:outputText id="sdCustBeanSdCustCustFirstName" value="#{sdCustBean.sdCust.custFirstName}"/>
			<h:outputText/>
			<h:outputLabel for="sdCustBeanSdCustCustMidName" value="Cust Mid Name:"/>
			<h:outputText id="sdCustBeanSdCustCustMidName" value="#{sdCustBean.sdCust.custMidName}"/>
			<h:outputText/>
			<h:outputLabel for="sdCustBeanSdCustCustLastName" value="Cust Last Name:"/>
			<h:outputText id="sdCustBeanSdCustCustLastName" value="#{sdCustBean.sdCust.custLastName}"/>
			<h:outputText/>
			<h:outputLabel for="sdCustBeanSdCustCustIdCardNo" value="Cust Id Card No:"/>
			<h:outputText id="sdCustBeanSdCustCustIdCardNo" value="#{sdCustBean.sdCust.custIdCardNo}"/>
			<h:outputText/>
			<h:outputLabel for="sdCustBeanSdCustCustSex" value="Cust Sex:"/>
			<h:outputText id="sdCustBeanSdCustCustSex" value="#{sdCustBean.sdCust.custSex}"/>
			<h:outputText/>
			<h:outputLabel for="sdCustBeanSdCustSdCustContacts" value="Sd Cust Contacts:"/>
			<h:dataTable id="sdCustBeanSdCustSdCustContacts" styleClass="data-table" value="#{forgeview:asList(sdCustBean.sdCust.sdCustContacts)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Sys Title Name"/>
					</f:facet>
					<h:link outcome="/sdCustContact/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="forgeviewdisplayitemSysTitleName" value="#{forgeview:display(_item.sysTitleName)}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Cust Contact First Name"/>
					</f:facet>
					<h:link outcome="/sdCustContact/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemCustContactFirstName" value="#{_item.custContactFirstName}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Cust Contact Mid Name"/>
					</f:facet>
					<h:link outcome="/sdCustContact/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemCustContactMidName" value="#{_item.custContactMidName}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Cust Contact Last Name"/>
					</f:facet>
					<h:link outcome="/sdCustContact/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemCustContactLastName" value="#{_item.custContactLastName}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Cust Contact Phone No"/>
					</f:facet>
					<h:link outcome="/sdCustContact/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemCustContactPhoneNo" value="#{_item.custContactPhoneNo}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
			<h:outputLabel for="sdCustBeanSdCustSdCustUserAddrs" value="Sd Cust User Addrs:"/>
			<h:dataTable id="sdCustBeanSdCustSdCustUserAddrs" styleClass="data-table" value="#{forgeview:asList(sdCustBean.sdCust.sdCustUserAddrs)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Sys Addr Type"/>
					</f:facet>
					<h:link outcome="/sdCustUserAddr/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="forgeviewdisplayitemSysAddrType" value="#{forgeview:display(_item.sysAddrType)}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Sys Addr 01"/>
					</f:facet>
					<h:link outcome="/sdCustUserAddr/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="forgeviewdisplayitemSysAddr01" value="#{forgeview:display(_item.sysAddr01)}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Cust User Addr No"/>
					</f:facet>
					<h:link outcome="/sdCustUserAddr/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemCustUserAddrNo" value="#{_item.custUserAddrNo}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Cust User Addr Moo"/>
					</f:facet>
					<h:link outcome="/sdCustUserAddr/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemCustUserAddrMoo" value="#{_item.custUserAddrMoo}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Cust User Addr Soi"/>
					</f:facet>
					<h:link outcome="/sdCustUserAddr/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemCustUserAddrSoi" value="#{_item.custUserAddrSoi}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
			<h:outputLabel for="sdCustBeanSdCustSdCustImages" value="Sd Cust Images:"/>
			<h:dataTable id="sdCustBeanSdCustSdCustImages" styleClass="data-table" value="#{forgeview:asList(sdCustBean.sdCust.sdCustImages)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Cust Image Name"/>
					</f:facet>
					<h:link outcome="/sdCustImage/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemCustImageName" value="#{_item.custImageName}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Cust Image Descr"/>
					</f:facet>
					<h:link outcome="/sdCustImage/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemCustImageDescr" value="#{_item.custImageDescr}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Cust Image File Name"/>
					</f:facet>
					<h:link outcome="/sdCustImage/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemCustImageFileName" value="#{_item.custImageFileName}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
			<h:outputLabel for="sdCustBeanSdCustSdQuotations" value="Sd Quotations:"/>
			<h:dataTable id="sdCustBeanSdCustSdQuotations" styleClass="data-table" value="#{forgeview:asList(sdCustBean.sdCust.sdQuotations)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Qt No"/>
					</f:facet>
					<h:link outcome="/sdQuotation/view">
						<f:param name="id" value="#{_item.qtNo}"/>
						<h:outputText id="itemQtNo" value="#{_item.qtNo}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Qt Code"/>
					</f:facet>
					<h:link outcome="/sdQuotation/view">
						<f:param name="id" value="#{_item.qtNo}"/>
						<h:outputText id="itemQtCode" value="#{_item.qtCode}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Qt Descr"/>
					</f:facet>
					<h:link outcome="/sdQuotation/view">
						<f:param name="id" value="#{_item.qtNo}"/>
						<h:outputText id="itemQtDescr" value="#{_item.qtDescr}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Qt Date"/>
					</f:facet>
					<h:link outcome="/sdQuotation/view">
						<f:param name="id" value="#{_item.qtNo}"/>
						<h:outputText id="itemQtDate" value="#{_item.qtDate}">
							<f:convertDateTime type="date"/>
						</h:outputText>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Qt Discount Perc"/>
					</f:facet>
					<h:link outcome="/sdQuotation/view">
						<f:param name="id" value="#{_item.qtNo}"/>
						<h:outputText id="itemQtDiscountPerc" value="#{_item.qtDiscountPerc}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
			<h:outputLabel for="sdCustBeanSdCustSdCustUserAccounts" value="Sd Cust User Accounts:"/>
			<h:dataTable id="sdCustBeanSdCustSdCustUserAccounts" styleClass="data-table" value="#{forgeview:asList(sdCustBean.sdCust.sdCustUserAccounts)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Cust User No"/>
					</f:facet>
					<h:link outcome="/sdCustUserAccount/view">
						<f:param name="id" value="#{_item.custUserNo}"/>
						<h:outputText id="itemCustUserNo" value="#{_item.custUserNo}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
			<h:outputLabel for="sdCustBeanSdCustSdCustParameters" value="Sd Cust Parameters:"/>
			<h:dataTable id="sdCustBeanSdCustSdCustParameters" styleClass="data-table" value="#{forgeview:asList(sdCustBean.sdCust.sdCustParameters)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Sys Parameter Master"/>
					</f:facet>
					<h:link outcome="/sdCustParameter/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="forgeviewdisplayitemSysParameterMaster" value="#{forgeview:display(_item.sysParameterMaster)}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Cust Param String Val"/>
					</f:facet>
					<h:link outcome="/sdCustParameter/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemCustParamStringVal" value="#{_item.custParamStringVal}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Cust Param Number Val"/>
					</f:facet>
					<h:link outcome="/sdCustParameter/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemCustParamNumberVal" value="#{_item.custParamNumberVal}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
			<h:outputLabel for="sdCustBeanSdCustSdCustAddrs" value="Sd Cust Addrs:"/>
			<h:dataTable id="sdCustBeanSdCustSdCustAddrs" styleClass="data-table" value="#{forgeview:asList(sdCustBean.sdCust.sdCustAddrs)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Sys Addr Type"/>
					</f:facet>
					<h:link outcome="/sdCustAddr/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="forgeviewdisplayitemSysAddrType" value="#{forgeview:display(_item.sysAddrType)}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Sys Addr 01"/>
					</f:facet>
					<h:link outcome="/sdCustAddr/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="forgeviewdisplayitemSysAddr01" value="#{forgeview:display(_item.sysAddr01)}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Cust Addr No"/>
					</f:facet>
					<h:link outcome="/sdCustAddr/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemCustAddrNo" value="#{_item.custAddrNo}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Cust Addr Moo"/>
					</f:facet>
					<h:link outcome="/sdCustAddr/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemCustAddrMoo" value="#{_item.custAddrMoo}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Cust Addr Soi"/>
					</f:facet>
					<h:link outcome="/sdCustAddr/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemCustAddrSoi" value="#{_item.custAddrSoi}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
			<h:outputLabel for="sdCustBeanSdCustSdCustTermOfPayments" value="Sd Cust Term Of Payments:"/>
			<h:dataTable id="sdCustBeanSdCustSdCustTermOfPayments" styleClass="data-table" value="#{forgeview:asList(sdCustBean.sdCust.sdCustTermOfPayments)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Sys Term Of Payment"/>
					</f:facet>
					<h:link outcome="/sdCustTermOfPayment/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="forgeviewdisplayitemSysTermOfPayment" value="#{forgeview:display(_item.sysTermOfPayment)}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Cust Term Of Payment Effective Date"/>
					</f:facet>
					<h:link outcome="/sdCustTermOfPayment/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemCustTermOfPaymentEffectiveDate" value="#{_item.custTermOfPaymentEffectiveDate}">
							<f:convertDateTime type="date"/>
						</h:outputText>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Cust Term Of Payment Expire Date"/>
					</f:facet>
					<h:link outcome="/sdCustTermOfPayment/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemCustTermOfPaymentExpireDate" value="#{_item.custTermOfPaymentExpireDate}">
							<f:convertDateTime type="date"/>
						</h:outputText>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Cust Term Of Payment Is Active"/>
					</f:facet>
					<h:link outcome="/sdCustTermOfPayment/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemCustTermOfPaymentIsActive" value="#{_item.custTermOfPaymentIsActive}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
			<h:outputLabel for="sdCustBeanSdCustSdCustDiscounts" value="Sd Cust Discounts:"/>
			<h:dataTable id="sdCustBeanSdCustSdCustDiscounts" styleClass="data-table" value="#{forgeview:asList(sdCustBean.sdCust.sdCustDiscounts)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Cust Discount Perc"/>
					</f:facet>
					<h:link outcome="/sdCustDiscount/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemCustDiscountPerc" value="#{_item.custDiscountPerc}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Cust Discount Effective Date"/>
					</f:facet>
					<h:link outcome="/sdCustDiscount/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemCustDiscountEffectiveDate" value="#{_item.custDiscountEffectiveDate}">
							<f:convertDateTime type="date"/>
						</h:outputText>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Cust Discount Expire Date"/>
					</f:facet>
					<h:link outcome="/sdCustDiscount/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemCustDiscountExpireDate" value="#{_item.custDiscountExpireDate}">
							<f:convertDateTime type="date"/>
						</h:outputText>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Cust Discount Is Active"/>
					</f:facet>
					<h:link outcome="/sdCustDiscount/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemCustDiscountIsActive" value="#{_item.custDiscountIsActive}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
			<h:outputLabel for="sdCustBeanSdCustSdSaleOrders" value="Sd Sale Orders:"/>
			<h:dataTable id="sdCustBeanSdCustSdSaleOrders" styleClass="data-table" value="#{forgeview:asList(sdCustBean.sdCust.sdSaleOrders)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="So No"/>
					</f:facet>
					<h:link outcome="/sdSaleOrder/view">
						<f:param name="id" value="#{_item.soNo}"/>
						<h:outputText id="itemSoNo" value="#{_item.soNo}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="So Code"/>
					</f:facet>
					<h:link outcome="/sdSaleOrder/view">
						<f:param name="id" value="#{_item.soNo}"/>
						<h:outputText id="itemSoCode" value="#{_item.soCode}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="So Descr"/>
					</f:facet>
					<h:link outcome="/sdSaleOrder/view">
						<f:param name="id" value="#{_item.soNo}"/>
						<h:outputText id="itemSoDescr" value="#{_item.soDescr}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="So Date"/>
					</f:facet>
					<h:link outcome="/sdSaleOrder/view">
						<f:param name="id" value="#{_item.soNo}"/>
						<h:outputText id="itemSoDate" value="#{_item.soDate}">
							<f:convertDateTime type="date"/>
						</h:outputText>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="So Discount Perc"/>
					</f:facet>
					<h:link outcome="/sdSaleOrder/view">
						<f:param name="id" value="#{_item.soNo}"/>
						<h:outputText id="itemSoDiscountPerc" value="#{_item.soDiscountPerc}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
		</h:panelGrid>

		<div class="buttons">
			<h:link value="View All" outcome="search" styleClass="btn btn-primary"/> 
			<h:link value="Edit" outcome="create" includeViewParams="true" styleClass="btn btn-primary"/>
			<h:link value="Create New" outcome="create" styleClass="btn btn-primary"/>
		</div>
	</ui:define>

</ui:composition>